package com.ttg.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author zhangHongYuan
 * @description
 * @date 2024/1/26 9:32
 */

@Data
@TableName(value = "tbl_primitive_bank_info")
public class PrimitiveBankInfo implements Serializable {


    private static final long serialVersionUID = 7846470685604779741L;


    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户号
     */
    @TableField(value = "cst_id")
    private String cstId;
    /**
     * 银行卡号
     */
    @TableField(value = "bank_card_no")
    private Long bankCardNo;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 卡bin
     */
    @TableField(value = "card_bin")
    private String cardBin;

    /**
     * 开户时间
     */
    @TableField(value = "account_opening_time")
    private LocalDateTime accountOpeningTime;

    /**
     * 消费金额
     */
    @TableField(value = "consumption_amount")
    private BigDecimal consumptionAmount;

    /**
     * 月均存款
     */
    @TableField(value = "month_amount")
    private BigDecimal monthAmount;

    /**
     * 季均存款
     */
    @TableField(value = "quarterly_amount")
    private BigDecimal quarterlyAmount;


    /**
     * 年均存款
     */
    @TableField(value = "year_amount")
    private BigDecimal yearAmount;

    /**
     * 理财金额
     */
    @TableField(value = "financing_amount")
    private BigDecimal financingAmount;

    /**
     * 贷款金额
     */
    @TableField(value = "loan_amount")
    private BigDecimal loanAmount;

    /**
     * 代发客户、收单商户、理财客户、贷款客户、手机银行客户、微信快捷支付、支付宝快捷支付
     */
    @TableField(value = "service_identification")
    private String serviceIdentification;


    /**
     * 会员id
     */
    @TableField(value = "vip_id")
    private Long vipId;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Long updateTime;


    /**
     * 消费笔数
     */
    @TableField(value = "consumption_amount_number")
    private Integer consumptionAmountNumber;

}
